package com.iot.service.mqtt.service.acl;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Set;

/**
 * @Author: hszhou
 * @Date: 2025/5/14 9:11
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AclRule {

    /**匹配类型：user/client/ip*/
    private String principalType;
    /**匹配值列表（逗号分隔）*/
    private Set<String> principals;
    /** 操作类型：pub/sub/**/
    private String action;
    /**MQTT 主题（支持通配符）*/
    private Set<String> topics;
    /**权限：allow/deny*/
    private boolean allow;
}
